package java1909;

import java.util.Scanner;

public class Text19092509 {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int[][] a = new int[n][];
		for (int i = 0; i < a.length; i++) {
			a[i] = new int[i + 1];
			a[i][0] = a[i][a[i].length - 1] = 1;
			for (int j = 1; j < a[i].length - 1; j++) {
				a[i][j] = a[i - 1][j - 1] + a[i - 1][j];
			}
		}
		for (int[] a1 : a) {
			for (int a2 : a1) {
				System.out.printf("%d ", a2);
			}
			System.out.println();
		}

	}
}
